Filter ref#711
Draft
GeorgyKirichenko wants to merge 17 commits intomainfrom
Draft
Conversation
When a device was not used while filter initialization use a default one value
This is obsolete and produces invalid values while query
The attributes use b-tree internal structure what is x86-specific implemented. Also b-tree lookup is slower that direct table lookups.
This is a preparation commit introducing an attribute compilation primitives. The commit introduces a some sort of polymorphism required to get rid of filter library hard-coded filter rule format and packet handling.
3cfb936 to
3cf6bfd
Compare
e00ed14 to
6beb0fc
Compare
6beb0fc to
149b347
Compare
Filter logic implies the following logic: - each attribute definition area is split into regions with unique set of rule set corresponding to the region - each rule gets a list of region identifiers for each attribute - combine pairs of attributes into sets of next level identifiers - the last stage resolves corresponding rule index So in case of 5 attributes compilation schema for a rule looks like a0, a1, a2, a3, a4 -> sets of range identifiers matching to the rule produce a5 = a0 * a1, a6 = a2 * a3, a7 = a4 * a5 where ai * aj if s full join of containing values after then we set rule index for each pair in set of a6 * a7. The logic consist of three stages - initialize all the attributes and touch regions for all rules. The stage result in enumerate all regions with values defining of unique rule set identifier. Also we collect region values for each rule into registries. - merge pairs of values into a new ones - after only two set of identifiers remained - the last one merge will set a rule index into corresponding table.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.